<!-- 参考官方文档 -->
<template>
    <view class="">
        <button @click="startPullDownRefresh">开启</button>
        <button @click="stopPullDownRefresh">停止</button>
    </view>
</template>

<script lang="ts" setup>
    function startPullDownRefresh() {
        //开启下拉刷新
        uni.startPullDownRefresh();
    };
    function stopPullDownRefresh() {
        //停止下拉刷新
        uni.stopPullDownRefresh();
    };
</script>

<style lang="scss" scoped>

</style>